import request from "@/utils/request"

/**
 * @description: 我的会员权益
GET /s-marketing/api/member-level/list
接口ID：33168947
接口地址：https://www.apifox.cn/web/project/1207715/apis/api-33168947
 * @param {*} params 
 * @returns 
 */
export const getMemberLevel = params => request.get('/s-marketing/api/member-level/list', params)

/**
 * @description: 获取商城文案设置
GET /s-content/api/copywriting/detail/{key}
接口ID：32488425
接口地址：https://www.apifox.cn/web/project/1207715/apis/api-32488425
 * @param {*} key 
 * @returns 
 */
export const getCopywritingDetail = key => request.get(`/s-content/api/copywriting/detail/${key}`)

/**
 * @description: 提交取消会员请求并记录取消会员理由
POST /s-mall/api/member/cancel-member
接口ID：52963800
接口地址：https://www.apifox.cn/web/project/1207715/apis/api-52963800
 * @param {*} data 
 * @returns 
 */
export const cancelMember = data => request.post('/s-mall/api/member/cancel-member', data)